﻿<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <base href="/"/>
    <link href="_content/AntDesign/css/ant-design-blazor.css" rel="stylesheet"/>
    <link href="_content/AntDesign.ProLayout/css/ant-design-pro-layout-blazor.css" rel="stylesheet"/>
    <link rel="stylesheet" href="NetCorePal.D3Shop.Web.styles.css"/>
    <link href="./css/site.css" rel="stylesheet"/>
    @* <link rel="icon" type="image/png" href="favicon.png" /> *@
    <HeadOutlet @rendermode="new InteractiveWebAssemblyRenderMode(prerender:false)"/>
</head>

<body>
    <Routes @rendermode="new InteractiveWebAssemblyRenderMode(prerender:false)"/>

    <script type="text/javascript" src="@("https://unpkg.com/@antv/g2plot@2.4.17/dist/g2plot.min.js")"></script>
    <script src="_content/AntDesign/js/ant-design-blazor.js"></script>
    <script src="_content/AntDesign.Charts/ant-design-charts-blazor.js"></script>
    <script src="_framework/blazor.web.js"></script>
    </body>

</html>

@code {
    [CascadingParameter]
    private HttpContext HttpContext { get; set; } = default!;

    private IComponentRenderMode? RenderModeForPage => HttpContext.Request.Path.StartsWithSegments("/admin/login")
        ? null
        : new InteractiveAutoRenderMode(prerender:false);
}